<template>
  <view class="c-swiper-list">
    <view class="c-swiper-item" v-for="(item, i) in list" :key="i">
      <slot></slot>
    </view>
  </view>
</template>

<script setup>
import { defineProps } from 'vue'

const props = defineProps({
  list: {
    type: Array,
    default() {
      return []
    }
  }
})
</script>

<style lang="scss">
.c-swiper-list {
  width: 100%;
  overflow-x: auto;
  white-space: nowrap;
  .c-swiper-item {
    display: inline-block;
    margin: 6px;
  }
}
</style>
